Added Universal Module Definition #145
Closed
+318
−249
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added the feature discussed in the issue #144, the goal is to be able to publish outdated-browser on npmjs without affecting current way of doing things
Gulp for compilation
To minify and jshint file I created a gulp configuration with two tasks
File structure
The goal is to make the directory easier to understand putting all the files needed in a dist directory.
If you don't like this idea, you can tell me and I'll revert back to what it was
Added a new "force" option
I noticed in your demo that you had no way to force outdatedbrowser.js so I added a new option to force it. It can be usefull if some people willing to check custom with additional librairies (modernizr for instance)
In my opinion it could be interesting to add a new option to create a custom support method (just an idea)
Added module loader support
This was the main goal of this PR, I used umd (Universal Module Definition) to make outdatedbrowser loadable with requirejs or browserify.
I didn't published the plugin on npm cause you are the author (and maybe you want to keep the control), but I can do it if you want if this code is merged with master)
Sorry for my English :(